/*
   OpenZone2, Everquest 2 data editor
   Copyright (C) 2008  Andrew Fenn
    
	OpenZone2 is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   OpenZone2 is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with OpenZone2.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __OZ2_CONTENTMGR_H__
#define __OZ2_CONTENTMGR_H__

	#include <iostream>
	#include <string>
	#include <vector>
	#include <fstream>
	#include "OZDataTypes.h"


	class OzContentMgr { 
	
		public:
			OzContentMgr();
			~OzContentMgr();
			bool loadEQ2File(std::string, OZ2File&); // returns true or false if the file correctly loaded
		
			std::string mFileType; //	The file's format (what kind of file we're reading)
		private:
			std::fstream mFile; // The contents of the file we're currently reading
			char buffer[5]; // used to get data out the file
			std::string getEQ2FileType();
			void getEQ2DrawData(OZ2File&);
			
			void getVertices(long, OZ2File&);
	};

#endif
